package com.petsystem.system.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.petsystem.common.core.validate.AddGroup;
import com.petsystem.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import com.petsystem.common.core.domain.BaseEntity;

/**
 * 宠物信息业务对象 t_pet
 *
 * @author petsystem
 * @date 2022-02-26
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("宠物信息业务对象")
public class TPetBo extends BaseEntity {

    /**
     * 宠物id
     */
    @ApiModelProperty(value = "宠物id", required = true)
    @NotNull(message = "宠物id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 宠物发布人
     */
    @ExcelProperty(value = "宠物发布人")
    @ApiModelProperty("宠物发布人")
    private Long userId;

    /**
     * 宠物名称
     */
    @ApiModelProperty(value = "宠物名称", required = true)
    @NotBlank(message = "宠物名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 宠物性别（0公  1母）
     */
    @ApiModelProperty(value = "宠物性别（0公  1母）", required = true)
    @NotBlank(message = "宠物性别（0公  1母）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String gender;

    /**
     * 宠物分类
     */
    @ApiModelProperty(value = "宠物分类", required = true)
    @NotBlank(message = "宠物分类不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 宠物介绍
     */
    @ApiModelProperty(value = "宠物介绍", required = true)
    @NotBlank(message = "宠物介绍不能为空", groups = { AddGroup.class, EditGroup.class })
    private String introduce;

    /**
     * 宠物图片
     */
    @ApiModelProperty(value = "宠物图片", required = true)
//    @NotBlank(message = "宠物图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pic;

    /**
     * 领养状态（0未领养 1已领养）
     */
    @ApiModelProperty(value = "领养状态（0未领养 1已领养）", required = true)
    @NotBlank(message = "领养状态（0未领养 1已领养）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", required = true)
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 价格
     */
    @ApiModelProperty(value = "价格", required = true)
//    @NotNull(message = "价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double price;
}
